package dk.rhok.findstufffast;



import android.location.*;



public abstract class ViewManager implements CompassListener
{
    private final int LAYOUT_ID;
    private final float MIN_DIST;
    private final float MAX_DIST;

    protected boolean enabled;



    public ViewManager(int layoutId, float minDist, float maxDist)
    {
        LAYOUT_ID = layoutId;
        MIN_DIST = minDist;
        MAX_DIST = maxDist;
        enabled = false;
    }



    public void onCompassChanged()
    {
    }




    public void setEnabled(boolean enabled)
    {
        this.enabled = enabled;
    }



    public float getMinDistance()
    {
        return MIN_DIST;
    }



    public float getMaxDistance()
    {
        return MAX_DIST;
    }



    public int getLayoutId()
    {
        return LAYOUT_ID;
    }



    public abstract void update(Location phoneLocation, 
                                Location targetLocation);
}